﻿<Page x:Class="Resn.WhuPub.WPFClientUI.UpdateSubjectPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="UpdateCorporateWindow" MinWidth="640" MinHeight="480"  Loaded="Page_Loaded">
        <Grid Name="LayoutRoot">
                <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <TextBlock Text="编辑科目" Style="{DynamicResource TextBlockStyle}" />

                <Grid Grid.Row="1">
                        <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="1" Grid.Row="1" Text="专业" Style="{StaticResource TextBlockStyle}"
                                   HorizontalAlignment="Center"/>
                        <TextBlock Grid.Column="2" Grid.Row="2" HorizontalAlignment="Left" Text="名称"
                                   VerticalAlignment="Top" Style="{StaticResource TextBlockStyle}" />
                        <TextBox Grid.Column="3" Grid.Row="2" VerticalAlignment="Top"
                                 Style="{StaticResource TextBoxStyle}"
                                 Text="{Binding SubjectName, UpdateSourceTrigger=PropertyChanged}" />
                        
                        <TextBlock Grid.Column="2" Grid.Row="3" HorizontalAlignment="Right"
                                   Text="代码" VerticalAlignment="Center" Style="{StaticResource TextBlockStyle}" />                        
                        <TextBox Grid.Column="3" Grid.Row="3" HorizontalAlignment="Stretch"
                                 VerticalAlignment="Center"
                                 Style="{StaticResource TextBoxStyle}" 
                                 Text="{Binding SubjectCode,UpdateSourceTrigger=PropertyChanged}" />
                </Grid>
                <Grid Grid.Row="2">
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Button Content="确定" Grid.Column="2" Name="AcceptButton"
                                Style="{DynamicResource ButtonStyle}"
                                Click="AcceptButton_Click" IsDefault="True" />
                        <Button Content="取消" Grid.Column="1"
                                Style="{DynamicResource ButtonStyle}"
                                IsCancel="True" Command="BrowseBack" />

                </Grid>
        </Grid>
</Page>